package com.example.water_quality_analysis.service;

import com.example.water_quality_analysis.pojo.model.Data;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.water_quality_analysis.pojo.model.WaterQuality;
import com.example.water_quality_analysis.pojo.vo.WaterDailyQuality;
import com.example.water_quality_analysis.pojo.vo.WaterDailyQualityYear;
import com.opencsv.exceptions.CsvException;

import java.io.IOException;
import java.text.ParseException;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
* @author lin
* @description 针对表【data】的数据库操作Service
* @createDate 2024-07-02 15:57:43
*/
public interface DataService extends IService<Data> {
    void getDataFromFile() throws IOException, CsvException, ParseException;

    WaterDailyQuality analysisDailyData(Long page, Long size);

    WaterDailyQuality analysisMonthlyData(Long currentPage, Long pageSize);

    WaterDailyQualityYear analysisYearlyData(Long currentPage, Long pageSize);


    WaterQuality analysisDayData(LocalDate date);

    WaterQuality analysisMonthData(LocalDate data);

    WaterQuality analysisYearData(LocalDate data);
}
